package com.qfmy.model.entity.novel;


import com.qfmy.model.entity.user.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity.novel
 * @date 2025/10/31
 * @description 小说封面轮播图表实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class NovelCarousel extends BaseEntity {

    @Schema(description = "轮播图ID")
    private Integer carouselId;

    @Schema(description = "关联小说ID（关联novel表，为空表示非小说绑定轮播）")
    private Integer novelId;

    @Schema(description = "轮播图封面URL")
    private String carouselImage;

    @Schema(description = "轮播图标题（如“《星际漫游》热门推荐”）")
    private String carouselTitle;

    @Schema(description = "轮播图描述（hover时显示或辅助说明）")
    private String carouselDesc;

    @Schema(description = "点击跳转URL（如小说详情页链接，为空则不跳转）")
    private String jumpUrl;

    @Schema(description = "排序权重（数值越大，轮播时越靠前）")
    private Integer sortOrder;

    @Schema(description = "是否启用：0禁用，1启用")
    private Boolean isEnabled;

    @Schema(description = "轮播图排布的位置")
    private Integer position;

}